import type { RouteRecordRaw } from 'vue-router';

import { BasicLayout } from '#/layouts';

const routes: RouteRecordRaw[] = [
  {
    component: BasicLayout,
    meta: {
      icon: 'streamline:money-wallet-money-payment-finance-wallet',
      order: 40,
      title: '财务结算',
    },
    name: 'Finance',
    path: '/finance',
    redirect: '/finance/finance-survey',
    children: [
      {
        name: 'FinanceSurvey',
        path: 'finance-survey',
        component: () => import('#/views/finance/finance-survey/index.vue'),
        meta: {
          title: '财务概况',
        },
      },
      {
        name: 'FinanceList',
        path: 'finance-list',
        component: () => import('#/views/finance/finance-list/index.vue'),
        meta: {
          title: '财务明细',
        },
      },
      {
        name: 'InvoiceList',
        path: 'invoice-list',
        component: () => import('#/views/finance/invoice-list/index.vue'),
        meta: {
          title: '发票管理',
        },
      },
    ],
  },
];

export default routes;
